package day_2022_12_to_3.year2023;

/**
 * @author haomin
 * @date 2023/01/08 22:49
 **/
public class Day1_8_Num2185 {
    class Solution {
        public int prefixCount(String[] words, String pref) {
            int ans = 0;
            for(String str : words) {
                if(str.startsWith(pref)) ans++;
            }
            return ans;
        }
    }
}